#include "object.h"

#include <QGraphicsScene>
#include <QPainter>
#include <QStyleOption>


Object::Object()
{
    m_boundingRect=QRectF(-10,-10,20,20);
}

QRectF Object::boundingRect() const
{
    return m_boundingRect;
}

void Object::setBoundingRect(QRectF rect)
{
    m_boundingRect=rect;
}


inline int Object::id()const
{
    return m_id;
}
inline int Object::objectType()const
{
    return m_object_type;
}
void Object::setObjectType(int new_type)
{
    m_object_type=new_type;
}


void Object::control()
{
;
}


void Object::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
{
    painter->setBrush(Qt::gray);
    painter->drawRect(-100, -100, 40, 20);
}

